/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package run;

import core.ResearchCore;
import core.StepOwnerCore;
import model.Employee;

/**
 *
 * @author phinguyen
 */
public class TestHQL {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        StepOwnerCore core = new StepOwnerCore();
        String varemail = null;
        for (String string : core.getAllEmailEmployee()) {
            System.out.println(" email : " + string);
            varemail = string;
        }
        System.out.println(core.getEmployeeByMail(varemail).toString());
        
        for (Employee string : core.getAllEmployeesOfDepartment(core.researchDepartmentByName("FINANCE"))) {
            System.out.println(" - " + string.getEfirstname() + " " +string.getEname());
        }
        
        //abc
    }
}
